import  axios from 'axios'
const http ={
    get(url:string,params:any){
        return new Promise(()=>{
            axios({
                method: "GET",
                params,
                url
            }).then((res)=>{
                return res
            })
        })
    },
    post(url:string,params:any){
        return new Promise(()=>{
            axios({
                method: "POST",
                params,
                url
            }).then((res)=>{
                return res
            })
        })
    }

}
export default http

